package cn.bdqn.mapper;

import cn.bdqn.domain.Replenish;
import cn.bdqn.domain.SendFreight;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 补货单接口
 * @author dkj
 */
public interface ReplenishMapper {


    /**
     * 根据id查询
     * @param id
     * @return
     */
    Replenish selectByPrimaryKey(Integer id);


    /**
     * 根据发货单号和订单状态查询
     * @param sendFreights
     * @param transportState
     * @return
     */
    public List<Replenish> selectBySendNumberAndTransportState(@Param("sendFreights") List<SendFreight> sendFreights,
                                                               @Param("transportState") Integer transportState);


    /**
     * 新增
     * @param replenish
     */
    public void insertReplenish(Replenish replenish);


    /**
     * 修改
     * @param replenish
     */
    public void updateReplenish(Replenish replenish);

}
